<?php
    $cateID = get_query_var('cat');
    $cateID_parent = pa_category_top_parent_id($cateID);
    $top_cat_parent = pa_category_top_parent_id($cateID_parent);
    
    if($cateID==13 || $cateID==14 || $cateID==16 || $cateID==17 || $cateID==19 ){
        include 'category-five.php';
    }elseif(($cateID_parent == 12 || $top_cat_parent == 12) && ($cateID!=13 || $cateID!=14 || $cateID!=16 || $cateID!=17 || $cateID!=19)){
        include 'category-country.php';
    }else{
?>
<?php get_header(); ?>
    <div id="main">
    	<div class="wrapper">
            <div class="maincontent">
                <div class="breadcrumb">
                    <?php 
                        if(function_exists('bcn_display')){
                            bcn_display();
                        }
                    ?>
                </div>
                <h1><?php single_cat_title('',true); ?></h1>
                <?php
                    if(get_cat_ID(single_cat_title('',false)) == 5 ){
                        if (have_posts()) {
                            while (have_posts()) {
                                the_post();
                                wp_redirect(get_permalink());
                            }
                        }
                    }
                ?>
            </div><!-- //maincontent -->
            <div class="aside">
                <?php include 'aside.php'; ?>
            </div>
            <div class="clr"></div>
            <div class="bg-main-bot"></div>
        </div><!-- //aside -->
    </div><!-- //main -->
<?php get_footer(); ?>
<?php } ?>